<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>新创智联-评测系统</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<!--标准mui.css-->
		<link rel="stylesheet" href="${BASE_PATH}/static/pcxt/res/libs/mui/css/mui.min.css">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="${BASE_PATH}/static/pcxt/res/libs/mui/css/app.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">注册</h1>
		</header>
		<div class="mui-content">
			<form class="mui-input-group">
				<div class="mui-input-row">
					<label for="mobile">手机</label>
					<input id="mobile" type="text" name="mobile" placeholder="请输入手机号码"/>
				</div>
				<div class="mui-input-row">
					<label for="password">密码</label>
					<input id="password" type="password" name="password" placeholder="请输入密码" />
				</div>
				<div class="mui-input-row">
					<label for="re_password">确认密码</label>
					<input id="re_password" type="password" name="rePassword" placeholder="请再次输入密码" />
				</div>
				<div class="mui-button-row">
					<button id="login" type="button" class="mui-btn mui-btn-primary" onclick="return false;">注册</button>&nbsp;&nbsp;
					<a type="button" class="mui-btn mui-btn-danger" href="login.html">登录</a>
				</div>
			</form>
		</div>
	</body>
	
	<script type="text/javascript" src="${BASE_PATH}/static/pcxt/res/libs/jquery/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="${BASE_PATH}/static/pcxt/mobile/js/app.js"></script>
	<script>
		$(function(){
			$("#login").on("click",function(){
				var txt_mobile=$("#mobile");
				var txt_password=$("#password");
				var txt_repass=$("#re_password");
				var code=$.reg(txt_mobile.val(),txt_password.val(),txt_repass.val());
				if(code===1){
					txt_mobile.focus();
					return ;
				}
				if(code===2){
					txt_password.focus();
				}
				if(code===3){
					txt_repass.focus();
				}
			});
			
		})
	</script>
</html>